package com.kukudexin.lockThread;

/**
 * @author: 酷酷的鑫
 * @description:
 */
public class WaitTest {
    public static void main(String[] args) {
        WaitTest waitTest = new WaitTest();
        waitTest.print();
    }
    public synchronized void print(){
        try {
            this.wait(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
